package com.dly.hope.repository;

import com.dly.hope.modle.UserAccount;
import com.dly.hope.modle.ValidateCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author linyu.dai
 * @project myserve
 * @description
 * @creat 2022/8/28 20:09:22
 */
public interface ValidateCodeRepository extends JpaRepository<ValidateCode, String> {
    Optional<ValidateCode> findByEmailToAndUseAndSendAndDataStatus(String email, Integer use,Boolean send ,Integer isDelete);
}
